package za.ac.sun.cs.viz.distrib;

import javax.swing.JComponent;

import org.abego.treelayout.NodeExtentProvider;

public class VizExtentProvider implements
		NodeExtentProvider<VizNode> {

	private JComponent parent;

	public VizExtentProvider(JComponent parent) {
		this.parent = parent;
	}

	@Override
	public double getWidth(VizNode treeNode) {
		return treeNode.getWidth(parent);
	}

	@Override
	public double getHeight(VizNode treeNode) {
		return treeNode.getHeight(parent);
	}

}
